﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DCD RID: 3533
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RankUpAvatarScRsp : IMessage<RankUpAvatarScRsp>, IMessage, IEquatable<RankUpAvatarScRsp>, IDeepCloneable<RankUpAvatarScRsp>, IBufferMessage
	{
		// Token: 0x17002CDD RID: 11485
		// (get) Token: 0x06009E91 RID: 40593 RVA: 0x001A826C File Offset: 0x001A646C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RankUpAvatarScRsp> Parser
		{
			get
			{
				return RankUpAvatarScRsp._parser;
			}
		}

		// Token: 0x17002CDE RID: 11486
		// (get) Token: 0x06009E92 RID: 40594 RVA: 0x001A8273 File Offset: 0x001A6473
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RankUpAvatarScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002CDF RID: 11487
		// (get) Token: 0x06009E93 RID: 40595 RVA: 0x001A8285 File Offset: 0x001A6485
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RankUpAvatarScRsp.Descriptor;
			}
		}

		// Token: 0x06009E94 RID: 40596 RVA: 0x001A828C File Offset: 0x001A648C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RankUpAvatarScRsp()
		{
		}

		// Token: 0x06009E95 RID: 40597 RVA: 0x001A8294 File Offset: 0x001A6494
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RankUpAvatarScRsp(RankUpAvatarScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009E96 RID: 40598 RVA: 0x001A82B9 File Offset: 0x001A64B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RankUpAvatarScRsp Clone()
		{
			return new RankUpAvatarScRsp(this);
		}

		// Token: 0x17002CE0 RID: 11488
		// (get) Token: 0x06009E97 RID: 40599 RVA: 0x001A82C1 File Offset: 0x001A64C1
		// (set) Token: 0x06009E98 RID: 40600 RVA: 0x001A82C9 File Offset: 0x001A64C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06009E99 RID: 40601 RVA: 0x001A82D2 File Offset: 0x001A64D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RankUpAvatarScRsp);
		}

		// Token: 0x06009E9A RID: 40602 RVA: 0x001A82E0 File Offset: 0x001A64E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RankUpAvatarScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009E9B RID: 40603 RVA: 0x001A8310 File Offset: 0x001A6510
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009E9C RID: 40604 RVA: 0x001A834F File Offset: 0x001A654F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009E9D RID: 40605 RVA: 0x001A8357 File Offset: 0x001A6557
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009E9E RID: 40606 RVA: 0x001A8360 File Offset: 0x001A6560
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009E9F RID: 40607 RVA: 0x001A8394 File Offset: 0x001A6594
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009EA0 RID: 40608 RVA: 0x001A83D2 File Offset: 0x001A65D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RankUpAvatarScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009EA1 RID: 40609 RVA: 0x001A8403 File Offset: 0x001A6603
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009EA2 RID: 40610 RVA: 0x001A840C File Offset: 0x001A660C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003D30 RID: 15664
		private static readonly MessageParser<RankUpAvatarScRsp> _parser = new MessageParser<RankUpAvatarScRsp>(() => new RankUpAvatarScRsp());

		// Token: 0x04003D31 RID: 15665
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003D32 RID: 15666
		public const int RetcodeFieldNumber = 6;

		// Token: 0x04003D33 RID: 15667
		private uint retcode_;
	}
}
